Optimal. Leaf size=74 \[ -\frac {2 (c x)^{-n/2}}{a c n}+\frac {2 \sqrt {b} x^{n/2} (c x)^{-n/2} \tan ^{-1}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{3/2} c n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {354, 352, 199,
327, 211} \begin {gather*} \frac {2 \sqrt {b} x^{n/2} (c x)^{-n/2} \text {ArcTan}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{3/2} c n}-\frac {2 (c x)^{-n/2}}{a c n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 199
Rule 211
Rule 327
Rule 352
Rule 354
Rubi steps
\begin {align*} \int \frac {(c x)^{-1-\frac {n}{2}}}{a+b x^n} \, dx &=\frac {\left (x^{n/2} (c x)^{-n/2}\right ) \int \frac {x^{-1-\frac {n}{2}}}{a+b x^n} \, dx}{c}\\ &=-\frac {\left (2 x^{n/2} (c x)^{-n/2}\right ) \text {Subst}\left (\int \frac {1}{a+\frac {b}{x^2}} \, dx,x,x^{-n/2}\right )}{c n}\\ &=-\frac {\left (2 x^{n/2} (c x)^{-n/2}\right ) \text {Subst}\left (\int \frac {x^2}{b+a x^2} \, dx,x,x^{-n/2}\right )}{c n}\\ &=-\frac {2 (c x)^{-n/2}}{a c n}+\frac {\left (2 b x^{n/2} (c x)^{-n/2}\right ) \text {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,x^{-n/2}\right )}{a c n}\\ &=-\frac {2 (c x)^{-n/2}}{a c n}+\frac {2 \sqrt {b} x^{n/2} (c x)^{-n/2} \tan ^{-1}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{3/2} c n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.00, size = 37, normalized size = 0.50 \begin {gather*} -\frac {2 x (c x)^{-1-\frac {n}{2}} \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {b x^n}{a}\right )}{a n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \frac {\left (c x \right )^{-1-\frac {n}{2}}}{a +b \,x^{n}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 225, normalized size = 3.04 \begin {gather*} \left [-\frac {2 \, x e^{\left (-\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )} - \sqrt {-\frac {b c^{-n - 2}}{a}} \log \left (\frac {a x^{2} e^{\left (-{\left (n + 2\right )} \log \left (c\right ) - {\left (n + 2\right )} \log \left (x\right )\right )} + 2 \, a \sqrt {-\frac {b c^{-n - 2}}{a}} x e^{\left (-\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )} - b c^{-n - 2}}{a x^{2} e^{\left (-{\left (n + 2\right )} \log \left (c\right ) - {\left (n + 2\right )} \log \left (x\right )\right )} + b c^{-n - 2}}\right )}{a n}, -\frac {2 \, {\left (x e^{\left (-\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )} + \sqrt {\frac {b c^{-n - 2}}{a}} \arctan \left (\frac {\sqrt {\frac {b c^{-n - 2}}{a}} e^{\left (\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) + \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )}}{x}\right )\right )}}{a n}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.20, size = 54, normalized size = 0.73 \begin {gather*} - \frac {2 c^{- \frac {n}{2}} x^{- \frac {n}{2}}}{a c n} - \frac {2 \sqrt {b} c^{- \frac {n}{2}} \operatorname {atan}{\left (\frac {\sqrt {b} x^{\frac {n}{2}}}{\sqrt {a}} \right )}}{a^{\frac {3}{2}} c n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (c\,x\right )}^{\frac {n}{2}+1}\,\left (a+b\,x^n\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________